import http from '../util/http.js'

const createUrl = '/comment/create'
const queryByPidUrl = '/comment/query_comment_user_product'
const removeByIdUrl = '/comment/removeById'

const create = (data) => {
    return http.post(createUrl, data)
}
const queryByPid =(data) =>{
    return http.get(queryByPidUrl,data)
}

const removeById= (data) => {
    return http.del(removeByIdUrl,data)
}

export default {
    create,queryByPid,removeById
}